﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200077F RID: 1919
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetNpcTakenRewardScRsp : IMessage<GetNpcTakenRewardScRsp>, IMessage, IEquatable<GetNpcTakenRewardScRsp>, IDeepCloneable<GetNpcTakenRewardScRsp>, IBufferMessage
	{
		// Token: 0x17001888 RID: 6280
		// (get) Token: 0x06005645 RID: 22085 RVA: 0x000E9621 File Offset: 0x000E7821
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetNpcTakenRewardScRsp> Parser
		{
			get
			{
				return GetNpcTakenRewardScRsp._parser;
			}
		}

		// Token: 0x17001889 RID: 6281
		// (get) Token: 0x06005646 RID: 22086 RVA: 0x000E9628 File Offset: 0x000E7828
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetNpcTakenRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700188A RID: 6282
		// (get) Token: 0x06005647 RID: 22087 RVA: 0x000E963A File Offset: 0x000E783A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetNpcTakenRewardScRsp.Descriptor;
			}
		}

		// Token: 0x06005648 RID: 22088 RVA: 0x000E9641 File Offset: 0x000E7841
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcTakenRewardScRsp()
		{
		}

		// Token: 0x06005649 RID: 22089 RVA: 0x000E9654 File Offset: 0x000E7854
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcTakenRewardScRsp(GetNpcTakenRewardScRsp other) : this()
		{
			this.talkEventList_ = other.talkEventList_.Clone();
			this.npcId_ = other.npcId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600564A RID: 22090 RVA: 0x000E96A1 File Offset: 0x000E78A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetNpcTakenRewardScRsp Clone()
		{
			return new GetNpcTakenRewardScRsp(this);
		}

		// Token: 0x1700188B RID: 6283
		// (get) Token: 0x0600564B RID: 22091 RVA: 0x000E96A9 File Offset: 0x000E78A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TalkEventList
		{
			get
			{
				return this.talkEventList_;
			}
		}

		// Token: 0x1700188C RID: 6284
		// (get) Token: 0x0600564C RID: 22092 RVA: 0x000E96B1 File Offset: 0x000E78B1
		// (set) Token: 0x0600564D RID: 22093 RVA: 0x000E96B9 File Offset: 0x000E78B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint NpcId
		{
			get
			{
				return this.npcId_;
			}
			set
			{
				this.npcId_ = value;
			}
		}

		// Token: 0x1700188D RID: 6285
		// (get) Token: 0x0600564E RID: 22094 RVA: 0x000E96C2 File Offset: 0x000E78C2
		// (set) Token: 0x0600564F RID: 22095 RVA: 0x000E96CA File Offset: 0x000E78CA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06005650 RID: 22096 RVA: 0x000E96D3 File Offset: 0x000E78D3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetNpcTakenRewardScRsp);
		}

		// Token: 0x06005651 RID: 22097 RVA: 0x000E96E4 File Offset: 0x000E78E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetNpcTakenRewardScRsp other)
		{
			return other != null && (other == this || (this.talkEventList_.Equals(other.talkEventList_) && this.NpcId == other.NpcId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005652 RID: 22098 RVA: 0x000E9744 File Offset: 0x000E7944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.talkEventList_.GetHashCode();
			if (this.NpcId != 0U)
			{
				num ^= this.NpcId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005653 RID: 22099 RVA: 0x000E97AA File Offset: 0x000E79AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005654 RID: 22100 RVA: 0x000E97B2 File Offset: 0x000E79B2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005655 RID: 22101 RVA: 0x000E97BC File Offset: 0x000E79BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.talkEventList_.WriteTo(ref output, GetNpcTakenRewardScRsp._repeated_talkEventList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(80);
				output.WriteUInt32(this.Retcode);
			}
			if (this.NpcId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.NpcId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005656 RID: 22102 RVA: 0x000E9828 File Offset: 0x000E7A28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.talkEventList_.CalculateSize(GetNpcTakenRewardScRsp._repeated_talkEventList_codec);
			if (this.NpcId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.NpcId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005657 RID: 22103 RVA: 0x000E9894 File Offset: 0x000E7A94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetNpcTakenRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			this.talkEventList_.Add(other.talkEventList_);
			if (other.NpcId != 0U)
			{
				this.NpcId = other.NpcId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005658 RID: 22104 RVA: 0x000E98F5 File Offset: 0x000E7AF5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005659 RID: 22105 RVA: 0x000E9900 File Offset: 0x000E7B00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 42U)
				{
					if (num == 40U || num == 42U)
					{
						this.talkEventList_.AddEntriesFrom(ref input, GetNpcTakenRewardScRsp._repeated_talkEventList_codec);
						continue;
					}
				}
				else
				{
					if (num == 80U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.NpcId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040021BD RID: 8637
		private static readonly MessageParser<GetNpcTakenRewardScRsp> _parser = new MessageParser<GetNpcTakenRewardScRsp>(() => new GetNpcTakenRewardScRsp());

		// Token: 0x040021BE RID: 8638
		private UnknownFieldSet _unknownFields;

		// Token: 0x040021BF RID: 8639
		public const int TalkEventListFieldNumber = 5;

		// Token: 0x040021C0 RID: 8640
		private static readonly FieldCodec<uint> _repeated_talkEventList_codec = FieldCodec.ForUInt32(42U);

		// Token: 0x040021C1 RID: 8641
		private readonly RepeatedField<uint> talkEventList_ = new RepeatedField<uint>();

		// Token: 0x040021C2 RID: 8642
		public const int NpcIdFieldNumber = 13;

		// Token: 0x040021C3 RID: 8643
		private uint npcId_;

		// Token: 0x040021C4 RID: 8644
		public const int RetcodeFieldNumber = 10;

		// Token: 0x040021C5 RID: 8645
		private uint retcode_;
	}
}
